package cn.Leamus;


import android.util.Log;


public class Module {

    public Module() {
        Log.d("[java]Extend", "Qt Java Example By Pleafles");
    }

    protected void finalize( )
    {
        // finalization code here
        Log.d("[java]Extend", "finalize");
    }


    public static void gc()
    {
        System.gc();//手工回收垃圾
        System.runFinalization();
        Log.d("[java]Extend", "gc called");
    }



/*
    private static int tmpNum = 1;
    private static String tmpStr = "123";

    public static void setInt(int num) {
        tmpNum = num;
    }
    public static int getInt() {
        return tmpNum;
    }
    public static void setString(String str) {
        tmpStr = str;
    }
    public static String getString() {
        return tmpStr;
    }

    public static void keepActive() {
        PowerManager pm=(PowerManager)getSystemService(Context.POWER_SERVICE);
        WakeLock wakelock=pm.newWakeLock(PowerManager,PARTIAL_WAKE_LOCK,"mywakelock");
        wakelock.acquire();
    }
*/
}
